﻿using System;
using WhiteFlow.Wpf.Common.Mvvm.Model;

namespace WhiteFlow.DevTrackingTool.UI.Models
{
    [Serializable]
    public class Project : WorksheetItem
    {
        #region Constants

        /// <summary>
        /// The property name for Name property.
        /// </summary>
        public const string NamePropertyName = "Name";

        /// <summary>
        /// The property name for Customer property.
        /// </summary>
        public const string CustomerPropertyName = "Customer";

        /// <summary>
        /// The property name for Description property.
        /// </summary>
        public const string DescriptionPropertyName = "Description";

        #endregion

        #region Fields

        private string name;

        private string customer;

        private string description;
        
        #endregion

        #region Properties

        public string Name
        {
            get { return name; }
            set
            {
                name = value;
                OnPropertyChanged(NamePropertyName);
                OnWorksheetItemChanged();
            }
        }

        public string Customer
        {
            get { return customer; }
            set
            {
                customer = value;
                OnPropertyChanged(CustomerPropertyName);
                OnWorksheetItemChanged();
            }
        }

        public string Description
        {
            get { return description; }
            set
            {
                description = value;
                OnPropertyChanged(DescriptionPropertyName);
                OnWorksheetItemChanged();
            }
        }

        #endregion
    }
}